import { RouteRecordRaw } from "vue-router"
import SiteLayout from '@/layout/index.vue'

/**
 * 会员管理相关路由
 */
const userRoutes: RouteRecordRaw[] = [
  {
    path: '/user',
    component: SiteLayout,
    children: [
      {
        path: 'list', // /user/list
        component: () => import('@/views/user/list.vue'),
        meta: {
          title: '会员列表',
        },
      },
      {
        path: 'level',
        component: () => import('@/views/user/level.vue'),
        meta: {
          title: '会员等级',
        },
      }
    ],
    meta: {
      title: '会员管理',
    },
  }
]

export default userRoutes
